Package com.cisco.pt.ipc.sim.pdu.impl
Class RIPPacketImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
com.cisco.pt.ipc.sim.pdu.impl.PduImpl
com.cisco.pt.ipc.sim.pdu.impl.RIPPacketImpl
- Direct Known Subclasses:
RIPv6PacketImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Byteprotected booleanprotected List<RIPRoutePacket>protected Shortprotected ByteFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
fieldNames, fieldTable, signalType, typeTable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTypeAndPayload(EncodedBuffer buffer) getFieldType(String fieldName) booleanvoidpduRead(EncodedBuffer buffer) voidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidsetCommand(Byte command) voidsetIsRedistributed(boolean isRedistributed) voidsetRoutes(List<RIPRoutePacket> routes) voidsetRoutingDomain(Short routingDomain) voidsetVersion(Byte version) Methods inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
getFieldValueMethods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Signal
getFieldValue
-
Field Details
-
command
-
version
-
routingDomain
-
routes
-
isRedistributed
protected boolean isRedistributed
-
-
Constructor Details
-
RIPPacketImpl
public RIPPacketImpl()
-
-
Method Details
-
getCommand
- Specified by:
getCommandin interfaceRIPPacket- Returns:
- Byte Returns a Byte
-
setCommand
- Specified by:
setCommandin interfaceRIPPacket- Parameters:
command- Takes in a parameter of command
-
getVersion
- Specified by:
getVersionin interfaceRIPPacket- Returns:
- Byte Returns a Byte
-
setVersion
- Specified by:
setVersionin interfaceRIPPacket- Parameters:
version- Takes in a parameter of version
-
getRoutingDomain
- Specified by:
getRoutingDomainin interfaceRIPPacket- Returns:
- Short Returns a Short
-
setRoutingDomain
- Specified by:
setRoutingDomainin interfaceRIPPacket- Parameters:
routingDomain- Takes in a parameter of routingDomain
-
getRoutes
-
setRoutes
-
getIsRedistributed
public boolean getIsRedistributed()- Specified by:
getIsRedistributedin interfaceRIPPacket- Returns:
- boolean Returns a boolean
-
setIsRedistributed
public void setIsRedistributed(boolean isRedistributed) - Specified by:
setIsRedistributedin interfaceRIPPacket- Parameters:
isRedistributed- Takes in a parameter of isRedistributed
-
getFieldType
- Overrides:
getFieldTypein classPduImpl
-
read
Reads this object from an EncodedBuffer of raw data -
pduRead
-
getOrderedFieldNames
- Specified by:
getOrderedFieldNamesin interfaceSignal- Overrides:
getOrderedFieldNamesin classPduImpl
-
encodeTypeAndPayload
- Specified by:
encodeTypeAndPayloadin interfaceSignal- Overrides:
encodeTypeAndPayloadin classPduImpl
-